package book.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:岁亮亮
 * Date:2024-01-08
 * TIME:19:17
 */
public class book {
    private String name;
    private String author;
    private String where;
    private  int price;
    private boolean isborrow;

    @Override
    public String toString() {
        return "book{" +
                "name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", where='" + where + '\'' +
                ", price=" + price +'\''+
                ((isborrow)?"已借出":"未被借出")+
                '}';
    }

    public book(String name, String author, String where, int price) {
        this.name = name;
        this.author = author;
        this.where = where;
        this.price = price;

    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getWhere() {
        return where;
    }

    public void setWhere(String where) {
        this.where = where;
    }

    public boolean isIsborrow() {
        return isborrow;
    }

    public void setIsborrow(boolean isborrow) {
        this.isborrow = isborrow;
    }
}
